﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Server
{
    public class ServerAPI
    {

        Connection connections;
        private Thread listener;
        private Option option;

        public ServerAPI(Dictionary<string, string> options)
        {
            connections = new Connection(options);
            option = new Option(options);
        }

        
        /// <summary>
        /// Starts the Server
        /// </summary>
        public void start()
        {

            //listener = new Thread(new ThreadStart(connections.start));
            //listener.Name = "Server Listener";
            //listener.Start();
            connections.start();
        }

        public void stop()
        {
            connections.stop();
        }


        
    }
}